﻿// MT516




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category5
{
  public class MT516 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagChoiceDefinition U0088;
    private static SwiftTagDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagSubItemDefinition U008B;
    private static SwiftTagDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagSubItemDefinition U008E;
    private static SwiftTagDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagSubItemDefinition U0091;
    private static SwiftTagDefinition U0092;
    private static SwiftTagSubItemDefinition U0093;
    private static SwiftTagSubItemDefinition U0094;
    private static SwiftTagSequenceDefinition U0095;
    private static SwiftTagDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagDefinition U009A;
    private static SwiftTagSubItemDefinition U009B;
    private static SwiftTagSubItemDefinition U009C;
    private static SwiftTagChoiceDefinition U009D;
    private static SwiftTagDefinition U009E;
    private static SwiftTagSubItemDefinition U009F;
    private static SwiftTagSubItemDefinition U0001U0002;
    private static SwiftTagSubItemDefinition U0002U0002;
    private static SwiftTagDefinition U0003U0002;
    private static SwiftTagSubItemDefinition U0004U0002;
    private static SwiftTagSubItemDefinition U0005U0002;
    private static SwiftTagChoiceDefinition U0006U0002;
    private static SwiftTagDefinition U0007U0002;
    private static SwiftTagSubItemDefinition U0008U0002;
    private static SwiftTagSubItemDefinition U000EU0002;
    private static SwiftTagSubItemDefinition U000FU0002;
    private static SwiftTagSubItemDefinition U0010U0002;
    private static SwiftTagSubItemDefinition U0011U0002;
    private static SwiftTagDefinition U0012U0002;
    private static SwiftTagSubItemDefinition U0013U0002;
    private static SwiftTagSubItemDefinition U0014U0002;
    private static SwiftTagSubItemDefinition U0015U0002;
    private static SwiftTagSubItemDefinition U0016U0002;
    private static SwiftTagSubItemDefinition U0017U0002;
    private static SwiftTagDefinition U0018U0002;
    private static SwiftTagSubItemDefinition U0019U0002;
    private static SwiftTagSubItemDefinition U001AU0002;
    private static SwiftTagSubItemDefinition U001BU0002;
    private static SwiftTagSubItemDefinition U001CU0002;
    private static SwiftTagSubItemDefinition U001DU0002;
    private static SwiftTagDefinition U001EU0002;
    private static SwiftTagSubItemDefinition U001FU0002;
    private static SwiftTagSubItemDefinition U007FU0002;
    private static SwiftTagSubItemDefinition U0080U0002;
    private static SwiftTagSubItemDefinition U0081U0002;
    private static SwiftTagSubItemDefinition U0082U0002;
    private static SwiftTagDefinition U0083U0002;
    private static SwiftTagSubItemDefinition U0084U0002;
    private static SwiftTagSubItemDefinition U0086U0002;
    private static SwiftTagSubItemDefinition U0087U0002;
    private static SwiftTagSubItemDefinition U0088U0002;
    private static SwiftTagSubItemDefinition U0089U0002;
    private static SwiftTagDefinition U008AU0002;
    private static SwiftTagSubItemDefinition U008BU0002;
    private static SwiftTagSubItemDefinition U008CU0002;
    private static SwiftTagSubItemDefinition U008DU0002;
    private static SwiftTagSubItemDefinition U008EU0002;
    private static SwiftTagSubItemDefinition U008FU0002;
    private static SwiftTagChoiceDefinition U0090U0002;
    private static SwiftTagDefinition U0091U0002;
    private static SwiftTagSubItemDefinition U0092U0002;
    private static SwiftTagSubItemDefinition U0093U0002;
    private static SwiftTagDefinition U0094U0002;
    private static SwiftTagSubItemDefinition U0095U0002;
    private static SwiftTagSubItemDefinition U0096U0002;
    private static SwiftTagDefinition U0097U0002;
    private static SwiftTagSubItemDefinition U0098U0002;
    private static SwiftTagSubItemDefinition U0099U0002;
    private static SwiftTagDefinition U009AU0002;
    private static SwiftTagSubItemDefinition U009BU0002;
    private static SwiftTagSubItemDefinition U009CU0002;
    private static SwiftTagDefinition U009DU0002;
    private static SwiftTagSubItemDefinition U009EU0002;
    private static SwiftTagSubItemDefinition U009FU0002;
    private static SwiftTagSubItemDefinition U0001U0003;
    private static SwiftTagChoiceDefinition U0002U0003;
    private static SwiftTagDefinition U0003U0003;
    private static SwiftTagSubItemDefinition U0004U0003;
    private static SwiftTagSubItemDefinition U0005U0003;
    private static SwiftTagDefinition U0006U0003;
    private static SwiftTagSubItemDefinition U0007U0003;
    private static SwiftTagSubItemDefinition U0008U0003;
    private static SwiftTagSequenceDefinition U000EU0003;
    private static SwiftTagDefinition U000FU0003;
    private static SwiftTagDefinition U0010U0003;

    [Description("Securities Loan/Recall/Return Identification")]
    public MT516.SequenceAClass SequenceA
    {
      get
      {
        return new MT516.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Collateral Arrangements")]
    public MT516.SequenceBClass SequenceB
    {
      get
      {
        MT516.SequenceBClass sequenceBclass = new MT516.SequenceBClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceBclass).Count > 0)
          return sequenceBclass;
        else
          return (MT516.SequenceBClass) null;
      }
    }

    [Description("")]
    public MT516.SequenceCClass SequenceC
    {
      get
      {
        MT516.SequenceCClass sequenceCclass = new MT516.SequenceCClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceCclass).Count > 0)
          return sequenceCclass;
        else
          return (MT516.SequenceCClass) null;
      }
    }

    public MT516()
      : base(true)
    {
    }

    public MT516(SwiftMessage message)
      : base(message)
    {
    }

    public MT516.SequenceBClass AddSequenceB()
    {
      return this.SequenceB ?? new MT516.SequenceBClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceB(MT516.SequenceBClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT516.SequenceCClass AddSequenceC()
    {
      return this.SequenceC ?? new MT516.SequenceCClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceC(MT516.SequenceCClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT516.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT516.MessageDefinition = new SwiftMessageDefinition("MT516", "Securities Loan Confirmation");
      MT516.U0002 = new SwiftTagSequenceDefinition("SequenceA", "Securities Loan/Recall/Return Identification");
      MT516.U0003 = new SwiftTagDefinition("TransactionReferenceNumber_A_20", "Transaction Reference Number");
      MT516.U0003.TagName = ":20:";
      MT516.U0004 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT516.U0003.Elements.Add((SwiftDefinitionElement) MT516.U0004);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0003);
      MT516.U0005 = new SwiftTagDefinition("RelatedReference_A_21", "Related Reference");
      MT516.U0005.TagName = ":21:";
      MT516.U0005.Mandatory = false;
      MT516.U0006 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT516.U0005.Elements.Add((SwiftDefinitionElement) MT516.U0006);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0005);
      MT516.U0007 = new SwiftTagDefinition("FurtherIdentification_A_23", "Further Identification");
      MT516.U0007.TagName = ":23:";
      MT516.U0008 = new SwiftTagSubItemDefinition("Code", "Code");
      MT516.U0007.Elements.Add((SwiftDefinitionElement) MT516.U0008);
      MT516.U000E = new SwiftTagSubItemDefinition("Function", "Function");
      MT516.U0007.Elements.Add((SwiftDefinitionElement) MT516.U000E);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0007);
      MT516.U000F = new SwiftTagDefinition("DateLoanRecallReturnAgreed_A_31P", "Date Loan/ Recall/ Return Agreed");
      MT516.U000F.TagName = ":31P:";
      MT516.U0010 = new SwiftTagSubItemDefinition("Date", "Date");
      MT516.U000F.Elements.Add((SwiftDefinitionElement) MT516.U0010);
      MT516.U0011 = new SwiftTagSubItemDefinition("Place", "Place");
      MT516.U0011.Mandatory = false;
      MT516.U000F.Elements.Add((SwiftDefinitionElement) MT516.U0011);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U000F);
      MT516.U0012 = new SwiftTagDefinition("SafekeepingAccount_A_83C", "Safekeeping Account");
      MT516.U0012.TagName = ":83C:/";
      MT516.U0012.Mandatory = false;
      MT516.U0013 = new SwiftTagSubItemDefinition("Account", "");
      MT516.U0012.Elements.Add((SwiftDefinitionElement) MT516.U0013);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0012);
      MT516.U0014 = new SwiftTagDefinition("IdentificationOfSecurities_A_35B", "Identification of Securities");
      MT516.U0014.TagName = ":35B:";
      MT516.U0015 = new SwiftTagSubItemDefinition("IdentificationOfSecurity", "Identification of Securities");
      MT516.U0015.Mandatory = false;
      MT516.U0016 = new SwiftTagSubItemDefinition("IdentificationOfSecurity_1", "Identification of Securities");
      MT516.U0015.Elements.Add((SwiftDefinitionElement) MT516.U0016);
      MT516.U0014.Elements.Add((SwiftDefinitionElement) MT516.U0015);
      MT516.U0017 = new SwiftTagSubItemDefinition("DescriptionOfSecurity", "Description of Securities");
      MT516.U0017.Mandatory = false;
      MT516.U0014.Elements.Add((SwiftDefinitionElement) MT516.U0017);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0014);
      MT516.U0018 = new SwiftTagDefinition("QuantityOfSecurities_A_35A", "Quantity Of Securities");
      MT516.U0018.TagName = ":35A:";
      MT516.U0018.Mandatory = false;
      MT516.U0019 = new SwiftTagSubItemDefinition("Type", "");
      MT516.U0018.Elements.Add((SwiftDefinitionElement) MT516.U0019);
      MT516.U001A = new SwiftTagSubItemDefinition("Quantity", "Quantity");
      MT516.U0018.Elements.Add((SwiftDefinitionElement) MT516.U001A);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0018);
      MT516.U001B = new SwiftTagDefinition("PayableDate_A_31L", "Payable Date");
      MT516.U001B.TagName = ":31L:";
      MT516.U001B.Mandatory = false;
      MT516.U001C = new SwiftTagSubItemDefinition("Date", "Date");
      MT516.U001B.Elements.Add((SwiftDefinitionElement) MT516.U001C);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U001B);
      MT516.U001D = new SwiftTagDefinition("ExDate_A_31X", "Ex Date");
      MT516.U001D.TagName = ":31X:";
      MT516.U001D.Mandatory = false;
      MT516.U001E = new SwiftTagSubItemDefinition("ExDate", "Ex Date");
      MT516.U001D.Elements.Add((SwiftDefinitionElement) MT516.U001E);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U001D);
      MT516.U001F = new SwiftTagDefinition("EffectiveDate_A_30", "Effective Date");
      MT516.U001F.TagName = ":30:";
      MT516.U007F = new SwiftTagSubItemDefinition("Date", "Date");
      MT516.U001F.Elements.Add((SwiftDefinitionElement) MT516.U007F);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U001F);
      MT516.U0080 = new SwiftTagDefinition("ExpiryOptionDate_A_31F", "Expiry/Option Date of Loan");
      MT516.U0080.TagName = ":31F:";
      MT516.U0080.Mandatory = false;
      MT516.U0081 = new SwiftTagSubItemDefinition("ExpiryOptionDate", "Expiry/Option Date of Loan");
      MT516.U0082 = new SwiftTagSubItemDefinition("Date", "Date");
      MT516.U0081.Elements.Add((SwiftDefinitionElement) MT516.U0082);
      MT516.U0083 = new SwiftTagSubItemDefinition("PeriodDate", "Period Date");
      MT516.U0083.Mandatory = false;
      MT516.U0084 = new SwiftTagSubItemDefinition("PeriodDate_1", "Period Date");
      MT516.U0083.Elements.Add((SwiftDefinitionElement) MT516.U0084);
      MT516.U0081.Elements.Add((SwiftDefinitionElement) MT516.U0083);
      MT516.U0080.Elements.Add((SwiftDefinitionElement) MT516.U0081);
      MT516.U0086 = new SwiftTagSubItemDefinition("PeriodDetails", "Period Details");
      MT516.U0086.Mandatory = false;
      MT516.U0087 = new SwiftTagSubItemDefinition("PeriodDetails_1", "Period Details");
      MT516.U0086.Elements.Add((SwiftDefinitionElement) MT516.U0087);
      MT516.U0080.Elements.Add((SwiftDefinitionElement) MT516.U0086);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0080);
      MT516.U0088 = new SwiftTagChoiceDefinition("Choice", "");
      MT516.U0088.Mandatory = false;
      MT516.U0088.Multiple = true;
      MT516.U0089 = new SwiftTagDefinition("ReceiverDelivererOfSecurities_A_87A", "Receiver/Deliverer of Securities on Loan");
      MT516.U0089.TagName = ":87A:";
      MT516.U008A = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT516.U008A.Mandatory = false;
      MT516.U0089.Elements.Add((SwiftDefinitionElement) MT516.U008A);
      MT516.U008B = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT516.U0089.Elements.Add((SwiftDefinitionElement) MT516.U008B);
      MT516.U0088.Elements.Add((SwiftDefinitionElement) MT516.U0089);
      MT516.U008C = new SwiftTagDefinition("ReceiverDelivererOfSecurities_A_87D", "Receiver/Deliverer of Securities on Loan");
      MT516.U008C.TagName = ":87D:";
      MT516.U008D = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT516.U008D.Mandatory = false;
      MT516.U008C.Elements.Add((SwiftDefinitionElement) MT516.U008D);
      MT516.U008E = new SwiftTagSubItemDefinition("NameAndAddress", "Name & Address");
      MT516.U008C.Elements.Add((SwiftDefinitionElement) MT516.U008E);
      MT516.U0088.Elements.Add((SwiftDefinitionElement) MT516.U008C);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0088);
      MT516.U008F = new SwiftTagDefinition("QuantityOfSecuritiesRecalledReturned_A_35N", "Quantity of Securities Recalled/Returned");
      MT516.U008F.TagName = ":35N:";
      MT516.U008F.Mandatory = false;
      MT516.U0090 = new SwiftTagSubItemDefinition("Type", "Type");
      MT516.U008F.Elements.Add((SwiftDefinitionElement) MT516.U0090);
      MT516.U0091 = new SwiftTagSubItemDefinition("Quantity", "Quantity");
      MT516.U008F.Elements.Add((SwiftDefinitionElement) MT516.U0091);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U008F);
      MT516.U0092 = new SwiftTagDefinition("MarketPriceOfSecurities_A_33T", "Market Price of Securities");
      MT516.U0092.TagName = ":33T:";
      MT516.U0092.Mandatory = false;
      MT516.U0093 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT516.U0092.Elements.Add((SwiftDefinitionElement) MT516.U0093);
      MT516.U0094 = new SwiftTagSubItemDefinition("Price", "Price");
      MT516.U0092.Elements.Add((SwiftDefinitionElement) MT516.U0094);
      MT516.U0002.Elements.Add((SwiftDefinitionElement) MT516.U0092);
      MT516.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT516.U0002);
      MT516.U0095 = new SwiftTagSequenceDefinition("SequenceB", "Collateral Arrangements");
      MT516.U0095.Mandatory = false;
      MT516.U0096 = new SwiftTagDefinition("InterestRateOnSecurities_B_37J", "Interest Rate on Securities");
      MT516.U0096.TagName = ":37J:";
      MT516.U0096.Mandatory = false;
      MT516.U0097 = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT516.U0096.Elements.Add((SwiftDefinitionElement) MT516.U0097);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U0096);
      MT516.U0098 = new SwiftTagDefinition("CollateralType_B_26H", "Collateral Type");
      MT516.U0098.TagName = ":26H:";
      MT516.U0098.Mandatory = false;
      MT516.U0099 = new SwiftTagSubItemDefinition("CollateralType", "Collateral Type");
      MT516.U0098.Elements.Add((SwiftDefinitionElement) MT516.U0099);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U0098);
      MT516.U009A = new SwiftTagDefinition("CollateralRequirement_B_33S", "Collateral Requirement");
      MT516.U009A.TagName = ":33S:";
      MT516.U009A.Mandatory = false;
      MT516.U009B = new SwiftTagSubItemDefinition("Code", "Code");
      MT516.U009A.Elements.Add((SwiftDefinitionElement) MT516.U009B);
      MT516.U009C = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT516.U009A.Elements.Add((SwiftDefinitionElement) MT516.U009C);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U009A);
      MT516.U009D = new SwiftTagChoiceDefinition("Choice", "");
      MT516.U009D.Mandatory = false;
      MT516.U009D.Multiple = true;
      MT516.U009E = new SwiftTagDefinition("CashCollateralAmount_B_32A", "Cash Collateral Amount");
      MT516.U009E.TagName = ":32A:";
      MT516.U009F = new SwiftTagSubItemDefinition("Date", "Date");
      MT516.U009E.Elements.Add((SwiftDefinitionElement) MT516.U009F);
      MT516.U0001U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT516.U009E.Elements.Add((SwiftDefinitionElement) MT516.U0001U0002);
      MT516.U0002U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT516.U009E.Elements.Add((SwiftDefinitionElement) MT516.U0002U0002);
      MT516.U009D.Elements.Add((SwiftDefinitionElement) MT516.U009E);
      MT516.U0003U0002 = new SwiftTagDefinition("CashCollateralAmount_B_32B", "Cash Collateral Amount");
      MT516.U0003U0002.TagName = ":32B:";
      MT516.U0004U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT516.U0003U0002.Elements.Add((SwiftDefinitionElement) MT516.U0004U0002);
      MT516.U0005U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT516.U0003U0002.Elements.Add((SwiftDefinitionElement) MT516.U0005U0002);
      MT516.U009D.Elements.Add((SwiftDefinitionElement) MT516.U0003U0002);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U009D);
      MT516.U0006U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT516.U0006U0002.Mandatory = false;
      MT516.U0006U0002.Multiple = true;
      MT516.U0007U0002 = new SwiftTagDefinition("RebateAgreed_B_37A", "Rebate Agreed");
      MT516.U0007U0002.TagName = ":37A:";
      MT516.U0008U0002 = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT516.U0007U0002.Elements.Add((SwiftDefinitionElement) MT516.U0008U0002);
      MT516.U000EU0002 = new SwiftTagSubItemDefinition("Period", "Period");
      MT516.U000EU0002.Mandatory = false;
      MT516.U000FU0002 = new SwiftTagSubItemDefinition("Period_1", "Period");
      MT516.U000EU0002.Elements.Add((SwiftDefinitionElement) MT516.U000FU0002);
      MT516.U0007U0002.Elements.Add((SwiftDefinitionElement) MT516.U000EU0002);
      MT516.U0010U0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT516.U0010U0002.Mandatory = false;
      MT516.U0011U0002 = new SwiftTagSubItemDefinition("Information_1", "");
      MT516.U0010U0002.Elements.Add((SwiftDefinitionElement) MT516.U0011U0002);
      MT516.U0007U0002.Elements.Add((SwiftDefinitionElement) MT516.U0010U0002);
      MT516.U0006U0002.Elements.Add((SwiftDefinitionElement) MT516.U0007U0002);
      MT516.U0012U0002 = new SwiftTagDefinition("RebateAgreed_B_37B", "Rebate Agreed");
      MT516.U0012U0002.TagName = ":37B:";
      MT516.U0013U0002 = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT516.U0012U0002.Elements.Add((SwiftDefinitionElement) MT516.U0013U0002);
      MT516.U0014U0002 = new SwiftTagSubItemDefinition("Period", "Period");
      MT516.U0014U0002.Mandatory = false;
      MT516.U0015U0002 = new SwiftTagSubItemDefinition("Period_1", "Period");
      MT516.U0014U0002.Elements.Add((SwiftDefinitionElement) MT516.U0015U0002);
      MT516.U0012U0002.Elements.Add((SwiftDefinitionElement) MT516.U0014U0002);
      MT516.U0016U0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT516.U0016U0002.Mandatory = false;
      MT516.U0017U0002 = new SwiftTagSubItemDefinition("Information_1", "");
      MT516.U0016U0002.Elements.Add((SwiftDefinitionElement) MT516.U0017U0002);
      MT516.U0012U0002.Elements.Add((SwiftDefinitionElement) MT516.U0016U0002);
      MT516.U0006U0002.Elements.Add((SwiftDefinitionElement) MT516.U0012U0002);
      MT516.U0018U0002 = new SwiftTagDefinition("RebateAgreed_B_37C", "Rebate Agreed");
      MT516.U0018U0002.TagName = ":37C:";
      MT516.U0019U0002 = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT516.U0018U0002.Elements.Add((SwiftDefinitionElement) MT516.U0019U0002);
      MT516.U001AU0002 = new SwiftTagSubItemDefinition("Period", "Period");
      MT516.U001AU0002.Mandatory = false;
      MT516.U001BU0002 = new SwiftTagSubItemDefinition("Period_1", "Period");
      MT516.U001AU0002.Elements.Add((SwiftDefinitionElement) MT516.U001BU0002);
      MT516.U0018U0002.Elements.Add((SwiftDefinitionElement) MT516.U001AU0002);
      MT516.U001CU0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT516.U001CU0002.Mandatory = false;
      MT516.U001DU0002 = new SwiftTagSubItemDefinition("Information_1", "");
      MT516.U001CU0002.Elements.Add((SwiftDefinitionElement) MT516.U001DU0002);
      MT516.U0018U0002.Elements.Add((SwiftDefinitionElement) MT516.U001CU0002);
      MT516.U0006U0002.Elements.Add((SwiftDefinitionElement) MT516.U0018U0002);
      MT516.U001EU0002 = new SwiftTagDefinition("RebateAgreed_B_37D", "Rebate Agreed");
      MT516.U001EU0002.TagName = ":37D:";
      MT516.U001FU0002 = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT516.U001EU0002.Elements.Add((SwiftDefinitionElement) MT516.U001FU0002);
      MT516.U007FU0002 = new SwiftTagSubItemDefinition("Period", "Period");
      MT516.U007FU0002.Mandatory = false;
      MT516.U0080U0002 = new SwiftTagSubItemDefinition("Period_1", "Period");
      MT516.U007FU0002.Elements.Add((SwiftDefinitionElement) MT516.U0080U0002);
      MT516.U001EU0002.Elements.Add((SwiftDefinitionElement) MT516.U007FU0002);
      MT516.U0081U0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT516.U0081U0002.Mandatory = false;
      MT516.U0082U0002 = new SwiftTagSubItemDefinition("Information_1", "");
      MT516.U0081U0002.Elements.Add((SwiftDefinitionElement) MT516.U0082U0002);
      MT516.U001EU0002.Elements.Add((SwiftDefinitionElement) MT516.U0081U0002);
      MT516.U0006U0002.Elements.Add((SwiftDefinitionElement) MT516.U001EU0002);
      MT516.U0083U0002 = new SwiftTagDefinition("RebateAgreed_B_37E", "Rebate Agreed");
      MT516.U0083U0002.TagName = ":37E:";
      MT516.U0084U0002 = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT516.U0083U0002.Elements.Add((SwiftDefinitionElement) MT516.U0084U0002);
      MT516.U0086U0002 = new SwiftTagSubItemDefinition("Period", "Period");
      MT516.U0086U0002.Mandatory = false;
      MT516.U0087U0002 = new SwiftTagSubItemDefinition("Period_1", "Period");
      MT516.U0086U0002.Elements.Add((SwiftDefinitionElement) MT516.U0087U0002);
      MT516.U0083U0002.Elements.Add((SwiftDefinitionElement) MT516.U0086U0002);
      MT516.U0088U0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT516.U0088U0002.Mandatory = false;
      MT516.U0089U0002 = new SwiftTagSubItemDefinition("Information_1", "");
      MT516.U0088U0002.Elements.Add((SwiftDefinitionElement) MT516.U0089U0002);
      MT516.U0083U0002.Elements.Add((SwiftDefinitionElement) MT516.U0088U0002);
      MT516.U0006U0002.Elements.Add((SwiftDefinitionElement) MT516.U0083U0002);
      MT516.U008AU0002 = new SwiftTagDefinition("RebateAgreed_B_37F", "Rebate Agreed");
      MT516.U008AU0002.TagName = ":37F:";
      MT516.U008BU0002 = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT516.U008AU0002.Elements.Add((SwiftDefinitionElement) MT516.U008BU0002);
      MT516.U008CU0002 = new SwiftTagSubItemDefinition("Period", "Period");
      MT516.U008CU0002.Mandatory = false;
      MT516.U008DU0002 = new SwiftTagSubItemDefinition("Period_1", "Period");
      MT516.U008CU0002.Elements.Add((SwiftDefinitionElement) MT516.U008DU0002);
      MT516.U008AU0002.Elements.Add((SwiftDefinitionElement) MT516.U008CU0002);
      MT516.U008EU0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT516.U008EU0002.Mandatory = false;
      MT516.U008FU0002 = new SwiftTagSubItemDefinition("Information_1", "");
      MT516.U008EU0002.Elements.Add((SwiftDefinitionElement) MT516.U008FU0002);
      MT516.U008AU0002.Elements.Add((SwiftDefinitionElement) MT516.U008EU0002);
      MT516.U0006U0002.Elements.Add((SwiftDefinitionElement) MT516.U008AU0002);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U0006U0002);
      MT516.U0090U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT516.U0090U0002.Mandatory = false;
      MT516.U0090U0002.Multiple = true;
      MT516.U0091U0002 = new SwiftTagDefinition("AccountWithInstitution_B_57A", "Account With Institution");
      MT516.U0091U0002.TagName = ":57A:";
      MT516.U0092U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT516.U0092U0002.Mandatory = false;
      MT516.U0091U0002.Elements.Add((SwiftDefinitionElement) MT516.U0092U0002);
      MT516.U0093U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT516.U0091U0002.Elements.Add((SwiftDefinitionElement) MT516.U0093U0002);
      MT516.U0090U0002.Elements.Add((SwiftDefinitionElement) MT516.U0091U0002);
      MT516.U0094U0002 = new SwiftTagDefinition("AccountWithInstitution_B_57B", "Account With Institution");
      MT516.U0094U0002.TagName = ":57B:";
      MT516.U0095U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT516.U0095U0002.Mandatory = false;
      MT516.U0094U0002.Elements.Add((SwiftDefinitionElement) MT516.U0095U0002);
      MT516.U0096U0002 = new SwiftTagSubItemDefinition("Location", "Location");
      MT516.U0096U0002.Mandatory = false;
      MT516.U0094U0002.Elements.Add((SwiftDefinitionElement) MT516.U0096U0002);
      MT516.U0090U0002.Elements.Add((SwiftDefinitionElement) MT516.U0094U0002);
      MT516.U0097U0002 = new SwiftTagDefinition("AccountWithInstitution_B_57D", "Account With Institution");
      MT516.U0097U0002.TagName = ":57D:";
      MT516.U0098U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT516.U0098U0002.Mandatory = false;
      MT516.U0097U0002.Elements.Add((SwiftDefinitionElement) MT516.U0098U0002);
      MT516.U0099U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name & Address");
      MT516.U0097U0002.Elements.Add((SwiftDefinitionElement) MT516.U0099U0002);
      MT516.U0090U0002.Elements.Add((SwiftDefinitionElement) MT516.U0097U0002);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U0090U0002);
      MT516.U009AU0002 = new SwiftTagDefinition("QuantityOfSecuritiesTransferredAsCollateral_B_35S", "Quantity of Securities Transferred as Collateral");
      MT516.U009AU0002.TagName = ":35S:";
      MT516.U009AU0002.Mandatory = false;
      MT516.U009BU0002 = new SwiftTagSubItemDefinition("Type", "Type");
      MT516.U009AU0002.Elements.Add((SwiftDefinitionElement) MT516.U009BU0002);
      MT516.U009CU0002 = new SwiftTagSubItemDefinition("Quantity", "Quantity");
      MT516.U009AU0002.Elements.Add((SwiftDefinitionElement) MT516.U009CU0002);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U009AU0002);
      MT516.U009DU0002 = new SwiftTagDefinition("IdentificationOfSecurities_B_35B", "Identification Of Security");
      MT516.U009DU0002.TagName = ":35B:";
      MT516.U009DU0002.Mandatory = false;
      MT516.U009EU0002 = new SwiftTagSubItemDefinition("IdentificationOfSecurity", "Identification Of Security");
      MT516.U009EU0002.Mandatory = false;
      MT516.U009FU0002 = new SwiftTagSubItemDefinition("IdentificationOfSecurity_1", "Identification Of Security");
      MT516.U009EU0002.Elements.Add((SwiftDefinitionElement) MT516.U009FU0002);
      MT516.U009DU0002.Elements.Add((SwiftDefinitionElement) MT516.U009EU0002);
      MT516.U0001U0003 = new SwiftTagSubItemDefinition("DescriptionOfSecurity", "Description Of Security");
      MT516.U0001U0003.Mandatory = false;
      MT516.U009DU0002.Elements.Add((SwiftDefinitionElement) MT516.U0001U0003);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U009DU0002);
      MT516.U0002U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT516.U0002U0003.Mandatory = false;
      MT516.U0002U0003.Multiple = true;
      MT516.U0003U0003 = new SwiftTagDefinition("ReceiverDelivererOfSecurities_B_87A", "Receiver/Deliverer of Securities on Loan");
      MT516.U0003U0003.TagName = ":87A:";
      MT516.U0004U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT516.U0004U0003.Mandatory = false;
      MT516.U0003U0003.Elements.Add((SwiftDefinitionElement) MT516.U0004U0003);
      MT516.U0005U0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT516.U0003U0003.Elements.Add((SwiftDefinitionElement) MT516.U0005U0003);
      MT516.U0002U0003.Elements.Add((SwiftDefinitionElement) MT516.U0003U0003);
      MT516.U0006U0003 = new SwiftTagDefinition("ReceiverDelivererOfSecurities_B_87D", "Receiver/Deliverer of Securities on Loan");
      MT516.U0006U0003.TagName = ":87D:";
      MT516.U0007U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT516.U0007U0003.Mandatory = false;
      MT516.U0006U0003.Elements.Add((SwiftDefinitionElement) MT516.U0007U0003);
      MT516.U0008U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name & Address");
      MT516.U0006U0003.Elements.Add((SwiftDefinitionElement) MT516.U0008U0003);
      MT516.U0002U0003.Elements.Add((SwiftDefinitionElement) MT516.U0006U0003);
      MT516.U0095.Elements.Add((SwiftDefinitionElement) MT516.U0002U0003);
      MT516.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT516.U0095);
      MT516.U000EU0003 = new SwiftTagSequenceDefinition("SequenceC", "");
      MT516.U000EU0003.Mandatory = false;
      MT516.U000FU0003 = new SwiftTagDefinition("SpecialTermsAndConditions_C_77D", "Special Terms and Conditions");
      MT516.U000FU0003.TagName = ":77D:";
      MT516.U000FU0003.Mandatory = false;
      MT516.U000EU0003.Elements.Add((SwiftDefinitionElement) MT516.U000FU0003);
      MT516.U0010U0003 = new SwiftTagDefinition("SenderToReceiverInformation_C_72", "Sender to Receiver Information");
      MT516.U0010U0003.TagName = ":72:";
      MT516.U0010U0003.Mandatory = false;
      MT516.U000EU0003.Elements.Add((SwiftDefinitionElement) MT516.U0010U0003);
      MT516.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT516.U000EU0003);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT516.U0002;
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 TransactionReferenceNumber_A_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0003);
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 Tag20_TransactionReferenceNumber_A
      {
        get
        {
          return this.TransactionReferenceNumber_A_20;
        }
      }

      [Description("Related Reference")]
      public Tag21 RelatedReference_A_21
      {
        get
        {
          return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0005);
        }
      }

      [Description("Related Reference")]
      public Tag21 Tag21_RelatedReference_A
      {
        get
        {
          return this.RelatedReference_A_21;
        }
      }

      [Description("Further Identification")]
      public MT516.SequenceAClass.Tag23 FurtherIdentification_A_23
      {
        get
        {
          return new MT516.SequenceAClass.Tag23((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0007);
        }
      }

      [Description("Further Identification")]
      public MT516.SequenceAClass.Tag23 Tag23_FurtherIdentification_A
      {
        get
        {
          return this.FurtherIdentification_A_23;
        }
      }

      [Description("Date Loan/ Recall/ Return Agreed")]
      public Tag31P DateLoanRecallReturnAgreed_A_31P
      {
        get
        {
          return new Tag31P((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U000F);
        }
      }

      [Description("Date Loan/ Recall/ Return Agreed")]
      public Tag31P Tag31P_DateLoanRecallReturnAgreed_A
      {
        get
        {
          return this.DateLoanRecallReturnAgreed_A_31P;
        }
      }

      [Description("Safekeeping Account")]
      public Tag83C SafekeepingAccount_A_83C
      {
        get
        {
          return new Tag83C((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0012);
        }
      }

      [Description("Safekeeping Account")]
      public Tag83C Tag83C_SafekeepingAccount_A
      {
        get
        {
          return this.SafekeepingAccount_A_83C;
        }
      }

      [Description("Identification of Securities")]
      public Tag35B IdentificationOfSecurities_A_35B
      {
        get
        {
          return new Tag35B((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0014);
        }
      }

      [Description("Identification of Securities")]
      public Tag35B Tag35B_IdentificationOfSecurities_A
      {
        get
        {
          return this.IdentificationOfSecurities_A_35B;
        }
      }

      [Description("Quantity Of Securities")]
      public Tag35A QuantityOfSecurities_A_35A
      {
        get
        {
          return new Tag35A((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0018);
        }
      }

      [Description("Quantity Of Securities")]
      public Tag35A Tag35A_QuantityOfSecurities_A
      {
        get
        {
          return this.QuantityOfSecurities_A_35A;
        }
      }

      [Description("Payable Date")]
      public Tag31L PayableDate_A_31L
      {
        get
        {
          return new Tag31L((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U001B);
        }
      }

      [Description("Payable Date")]
      public Tag31L Tag31L_PayableDate_A
      {
        get
        {
          return this.PayableDate_A_31L;
        }
      }

      [Description("Ex Date")]
      public Tag31X ExDate_A_31X
      {
        get
        {
          return new Tag31X((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U001D);
        }
      }

      [Description("Ex Date")]
      public Tag31X Tag31X_ExDate_A
      {
        get
        {
          return this.ExDate_A_31X;
        }
      }

      [Description("Effective Date")]
      public Tag30 EffectiveDate_A_30
      {
        get
        {
          return new Tag30((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U001F);
        }
      }

      [Description("Effective Date")]
      public Tag30 Tag30_EffectiveDate_A
      {
        get
        {
          return this.EffectiveDate_A_30;
        }
      }

      [Description("Expiry/Option Date of Loan")]
      public MT516.SequenceAClass.Tag31F ExpiryOptionDate_A_31F
      {
        get
        {
          return new MT516.SequenceAClass.Tag31F((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0080);
        }
      }

      [Description("Expiry/Option Date of Loan")]
      public MT516.SequenceAClass.Tag31F Tag31F_ExpiryOptionDate_A
      {
        get
        {
          return this.ExpiryOptionDate_A_31F;
        }
      }

      [Description("Receiver/Deliverer of Securities on Loan")]
      public Tag87A ReceiverDelivererOfSecurities_A_87A
      {
        get
        {
          return new Tag87A((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0089);
        }
      }

      [Description("Receiver/Deliverer of Securities on Loan")]
      public Tag87A Tag87A_ReceiverDelivererOfSecurities_A
      {
        get
        {
          return this.ReceiverDelivererOfSecurities_A_87A;
        }
      }

      [Description("Receiver/Deliverer of Securities on Loan")]
      public Tag87D ReceiverDelivererOfSecurities_A_87D
      {
        get
        {
          return new Tag87D((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U008C);
        }
      }

      [Description("Receiver/Deliverer of Securities on Loan")]
      public Tag87D Tag87D_ReceiverDelivererOfSecurities_A
      {
        get
        {
          return this.ReceiverDelivererOfSecurities_A_87D;
        }
      }

      [Description("Quantity of Securities Recalled/Returned")]
      public Tag35N QuantityOfSecuritiesRecalledReturned_A_35N
      {
        get
        {
          return new Tag35N((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U008F);
        }
      }

      [Description("Quantity of Securities Recalled/Returned")]
      public Tag35N Tag35N_QuantityOfSecuritiesRecalledReturned_A
      {
        get
        {
          return this.QuantityOfSecuritiesRecalledReturned_A_35N;
        }
      }

      [Description("Market Price of Securities")]
      public MT516.SequenceAClass.Tag33T MarketPriceOfSecurities_A_33T
      {
        get
        {
          return new MT516.SequenceAClass.Tag33T((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0092);
        }
      }

      [Description("Market Price of Securities")]
      public MT516.SequenceAClass.Tag33T Tag33T_MarketPriceOfSecurities_A
      {
        get
        {
          return this.MarketPriceOfSecurities_A_33T;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag23 : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("23", value);
          }
        }

        internal Tag23(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag31F : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("31F", value);
          }
        }

        internal Tag31F(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag33T : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("33T", value);
          }
        }

        internal Tag33T(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT516.U0095;
        }
      }

      [Description("Interest Rate on Securities")]
      public Tag37J InterestRateOnSecurities_B_37J
      {
        get
        {
          return new Tag37J((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0096);
        }
      }

      [Description("Interest Rate on Securities")]
      public Tag37J Tag37J_InterestRateOnSecurities_B
      {
        get
        {
          return this.InterestRateOnSecurities_B_37J;
        }
      }

      [Description("Collateral Type")]
      public Tag26H CollateralType_B_26H
      {
        get
        {
          return new Tag26H((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0098);
        }
      }

      [Description("Collateral Type")]
      public Tag26H Tag26H_CollateralType_B
      {
        get
        {
          return this.CollateralType_B_26H;
        }
      }

      [Description("Collateral Requirement")]
      public Tag33S CollateralRequirement_B_33S
      {
        get
        {
          return new Tag33S((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U009A);
        }
      }

      [Description("Collateral Requirement")]
      public Tag33S Tag33S_CollateralRequirement_B
      {
        get
        {
          return this.CollateralRequirement_B_33S;
        }
      }

      [Description("Cash Collateral Amount")]
      public Tag32A CashCollateralAmount_B_32A
      {
        get
        {
          return new Tag32A((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U009E);
        }
      }

      [Description("Cash Collateral Amount")]
      public Tag32A Tag32A_CashCollateralAmount_B
      {
        get
        {
          return this.CashCollateralAmount_B_32A;
        }
      }

      [Description("Cash Collateral Amount")]
      public Tag32B CashCollateralAmount_B_32B
      {
        get
        {
          return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0003U0002);
        }
      }

      [Description("Cash Collateral Amount")]
      public Tag32B Tag32B_CashCollateralAmount_B
      {
        get
        {
          return this.CashCollateralAmount_B_32B;
        }
      }

      [Description("Rebate Agreed")]
      public Tag37A RebateAgreed_B_37A
      {
        get
        {
          return new Tag37A((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0007U0002);
        }
      }

      [Description("Rebate Agreed")]
      public Tag37A Tag37A_RebateAgreed_B
      {
        get
        {
          return this.RebateAgreed_B_37A;
        }
      }

      [Description("Rebate Agreed")]
      public Tag37B RebateAgreed_B_37B
      {
        get
        {
          return new Tag37B((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0012U0002);
        }
      }

      [Description("Rebate Agreed")]
      public Tag37B Tag37B_RebateAgreed_B
      {
        get
        {
          return this.RebateAgreed_B_37B;
        }
      }

      [Description("Rebate Agreed")]
      public Tag37C RebateAgreed_B_37C
      {
        get
        {
          return new Tag37C((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0018U0002);
        }
      }

      [Description("Rebate Agreed")]
      public Tag37C Tag37C_RebateAgreed_B
      {
        get
        {
          return this.RebateAgreed_B_37C;
        }
      }

      [Description("Rebate Agreed")]
      public Tag37D RebateAgreed_B_37D
      {
        get
        {
          return new Tag37D((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U001EU0002);
        }
      }

      [Description("Rebate Agreed")]
      public Tag37D Tag37D_RebateAgreed_B
      {
        get
        {
          return this.RebateAgreed_B_37D;
        }
      }

      [Description("Rebate Agreed")]
      public Tag37E RebateAgreed_B_37E
      {
        get
        {
          return new Tag37E((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0083U0002);
        }
      }

      [Description("Rebate Agreed")]
      public Tag37E Tag37E_RebateAgreed_B
      {
        get
        {
          return this.RebateAgreed_B_37E;
        }
      }

      [Description("Rebate Agreed")]
      public Tag37F RebateAgreed_B_37F
      {
        get
        {
          return new Tag37F((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U008AU0002);
        }
      }

      [Description("Rebate Agreed")]
      public Tag37F Tag37F_RebateAgreed_B
      {
        get
        {
          return this.RebateAgreed_B_37F;
        }
      }

      [Description("Account With Institution")]
      public Tag57A AccountWithInstitution_B_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0091U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57A Tag57A_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57A;
        }
      }

      [Description("Account With Institution")]
      public Tag57B AccountWithInstitution_B_57B
      {
        get
        {
          return new Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0094U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57B Tag57B_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57B;
        }
      }

      [Description("Account With Institution")]
      public Tag57D AccountWithInstitution_B_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0097U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57D Tag57D_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57D;
        }
      }

      [Description("Quantity of Securities Transferred as Collateral")]
      public Tag35S QuantityOfSecuritiesTransferredAsCollateral_B_35S
      {
        get
        {
          return new Tag35S((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U009AU0002);
        }
      }

      [Description("Quantity of Securities Transferred as Collateral")]
      public Tag35S Tag35S_QuantityOfSecuritiesTransferredAsCollateral_B
      {
        get
        {
          return this.QuantityOfSecuritiesTransferredAsCollateral_B_35S;
        }
      }

      [Description("Identification Of Security")]
      public Tag35B IdentificationOfSecurities_B_35B
      {
        get
        {
          return new Tag35B((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U009DU0002);
        }
      }

      [Description("Identification Of Security")]
      public Tag35B Tag35B_IdentificationOfSecurities_B
      {
        get
        {
          return this.IdentificationOfSecurities_B_35B;
        }
      }

      [Description("Receiver/Deliverer of Securities on Loan")]
      public Tag87A ReceiverDelivererOfSecurities_B_87A
      {
        get
        {
          return new Tag87A((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0003U0003);
        }
      }

      [Description("Receiver/Deliverer of Securities on Loan")]
      public Tag87A Tag87A_ReceiverDelivererOfSecurities_B
      {
        get
        {
          return this.ReceiverDelivererOfSecurities_B_87A;
        }
      }

      [Description("Receiver/Deliverer of Securities on Loan")]
      public Tag87D ReceiverDelivererOfSecurities_B_87D
      {
        get
        {
          return new Tag87D((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0006U0003);
        }
      }

      [Description("Receiver/Deliverer of Securities on Loan")]
      public Tag87D Tag87D_ReceiverDelivererOfSecurities_B
      {
        get
        {
          return this.ReceiverDelivererOfSecurities_B_87D;
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }

    public class SequenceCClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT516.U000EU0003;
        }
      }

      [Description("Special Terms and Conditions")]
      public Tag77D SpecialTermsAndConditions_C_77D
      {
        get
        {
          return new Tag77D((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U000FU0003);
        }
      }

      [Description("Special Terms and Conditions")]
      public Tag77D Tag77D_SpecialTermsAndConditions_C
      {
        get
        {
          return this.SpecialTermsAndConditions_C_77D;
        }
      }

      [Description("Sender to Receiver Information")]
      public Tag72 SenderToReceiverInformation_C_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT516.U0010U0003);
        }
      }

      [Description("Sender to Receiver Information")]
      public Tag72 Tag72_SenderToReceiverInformation_C
      {
        get
        {
          return this.SenderToReceiverInformation_C_72;
        }
      }

      internal SequenceCClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }
  }
}
